import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {ProjectInfoComponent} from "./project-info/project-info.component";
import {ProjectEditComponent} from "./project-edit/project-edit.component";
import {ProjectMineComponent} from "./project-mine/project-mine.component";
import {ProjectUsageComponent} from "./project-usage/project-usage.component";

const routes: Routes = [
  {
    path: '',
    component: ProjectInfoComponent,
    data: {
      keep: true
    }
  }, {
    path: 'edit',
    component: ProjectEditComponent
  }, {
    path: 'mine',
    component: ProjectMineComponent, data: {
      keep: true
    }
  }, {
    path: 'mine/usage',
    component: ProjectUsageComponent
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class ProjectRoutingModule {
}
